Mesh should be created using "ideasUnvToFoam M_8.unv" command.
Then in polyMesh folder in boundary dict ground type should be changed to wall and sides type should be changed to empty.
Then "decomposePar" command should be used.
Then "setFields" command should be used.
Then "interFoam" to finally get the results.